from string import ascii_uppercase
from random import choices

# 生成验证码
def verification_code(lenght):
    return ''.join(choices(ascii_uppercase, k=lenght))


if __name__ == '__main__':
    print(verification_code(6))
